Please enable JavaScript to use CodeHS

CodeHS Practice Problems

Get familiar with coding using our Practice Problems.

JavaScript Practice Problems

Basics

LEVEL 1

Practice: 1pt - Unopened Calculate the Sum

Practice: 2pts - Unopened Dividing Up Groups

Practice: 2pts - Unopened Odd Man Out

Practice: 2pts - Unopened Percentage

Practice: 2pts - Unopened Divisible by 10?

Practice: 2pts - Unopened Hours to Seconds

Practice: 2pts - Unopened Area of a Triangle

Practice: 2pts - Unopened ERA

Practice: 1pt - Unopened Creating Functions

Practice: 1pt - Unopened The Identity Function

Practice: 1pt - Unopened Multiple Arguments

Strings

LEVEL 1

Practice: 2pts - Unopened YELLING

Practice: 2pts - Unopened Echo

Practice: 2pts - Unopened Say It Three Times!

Practice: 3pts - Unopened Is Uppercase?

Practice: 3pts - Unopened Is Lowercase?

Practice: 2pts - Unopened Find the Key

Practice: 3pts - Unopened Find the Uppercase Key Index

Practice: 3pts - Unopened Make It Even

Practice: 3pts - Unopened Make It Odd

Math

LEVEL 1

Practice: 3pts - Unopened Highest of Three

Practice: 3pts - Unopened Consecutive Number

Practice: 3pts - Unopened Sum Less than 100?

Practice: 3pts - Unopened Perimeter of a Rectangle

Practice: 2pts - Unopened Is the Number Even?

Practice: 2pts - Unopened Divisible by a Number

Practice: 3pts - Unopened Perpendicular Lines

Practice: 3pts - Unopened Pythagorean

Arrays

LEVEL 1

Practice: 1pt - Unopened Length

Practice: 1pt - Unopened First

Practice: 2pts - Unopened Reverse

Practice: 2pts - Unopened Extend

Practice: 2pts - Unopened Come Again?

Practice: 3pts - Unopened Evens

Practice: 2pts - Unopened Contains?

Practice: 2pts - Unopened Last

Strings

LEVEL 2

Practice: 4pts - Unopened Like Totally Awesome

Practice: 9pts - Unopened Finding a Word

Practice: 4pts - Unopened A or An?

Practice: 5pts - Unopened Fix the Bad Apple

Practice: 5pts - Unopened Switch the Words

Practice: 7pts - Unopened Split the String

Practice: 9pts - Unopened Convert to lowerCamelCase

Math

LEVEL 2

Practice: 4pts - Unopened Compound Interest

Practice: 4pts - Unopened Area Calculator

Practice: 4pts - Unopened Basic Calculator

Practice: 4pts - Unopened Inscribed Circle

Practice: 4pts - Unopened Right Triangle?

Practice: 6pts - Unopened Overtime

Practice: 4pts - Unopened Add a Consecutive List

Practice: 4pts - Unopened Calculation Checker

Practice: 5pts - Unopened Quadratic Equation

Arrays

LEVEL 2

Practice: 3pts - Unopened Compare Firsts

Practice: 3pts - Unopened Beginning and End

Practice: 3pts - Unopened Double Everything

Practice: 3pts - Unopened Negative Everything

Practice: 3pts - Unopened Sum

Practice: 5pts - Unopened Repeats?

Practice: 3pts - Unopened Double the Odds

Practice: 5pts - Unopened No Repeats

Recursion

LEVEL 1

Practice: 2pts - Unopened Factorial

Practice: 2pts - Unopened Sum

Practice: 3pts - Unopened Exponent

Practice: 4pts - Unopened Palindrome

Practice: 4pts - Unopened Number of Consonants

Practice: 4pts - Unopened Length of String

Practice: 4pts - Unopened Reverse String

Recursion

LEVEL 2

Practice: 5pts - Unopened Recurring Digits

Practice: 5pts - Unopened Remove Duplicates

Practice: 15pts - Unopened Merge Sort

Practice: 8pts - Unopened Binary Search

Practice: 6pts - Unopened Greatest Common Divisor

Practice: 6pts - Unopened Lowest Common Multiple

Practice: 5pts - Unopened Is Prime Number

CodeHS Practice FAQ

Still have questions? We’re happy to answer them, just reach out to hello@codehs.com!